import styled from 'styled-components'
import img from '@img/all.png'
export const StyledVmpPoll = styled.div`
	.title {
		color: #4e4e4e;
		margin-bottom: 25px;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.options {
		display: flex;
		align-items: center;
		margin-bottom: 5px;
		.label {
			width: 76px;
			color: #4e4e4e;
			font-size: 12px;
		}
		.seconds {
			display: flex;
			align-items: center;
		}
		.disabled {
			color: #b6b6b6;
		}
	}
	&.disabled .options .label,
	&.disabled .options .seconds {
		color: #b6b6b6;
	}
	.unlimited {
		position: relative;
	}
	.poll-list {
		width: 208px;
		.list-header {
			height: 25px;
			line-height: 25px;
			border-bottom: 1px solid #949799;
			.list-select {
				margin-left: 10px;
				b {
					margin-left: 5px;
				}
			}
			.edit {
				float: right;
				color: #2874bb;
				text-decoration: underline;
				cursor: pointer;
				&.disabled {
					cursor: initial;
					opacity: 0.5;
				}
			}
		}
		.list-content {
			height: 240px;
			overflow: auto;
			.list-item {
				height: 34px;
				line-height: 34px;
				display: flex;
				align-items: center;
				user-select: none;
				cursor: pointer;
				.name {
					margin-left: 10px;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
					flex: 1;
				}
			}
		}
	}
`
export const StyledPollModal = styled.div`
	padding: 0 35px;
	.transfer-wrap {
		position: relative;
		display: flex;
		margin-top: 20px;
		.left-list {
			height: 484px;
			width: 312px;
			.tab {
				position: relative;
				z-index: 1;
				span {
					box-sizing: content-box;
					display: inline-block;
					height: 34px;
					line-height: 34px;
					width: 80px;
					text-align: center;
					cursor: pointer;
					border: 1px solid transparent;
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
					&.selected {
						border: 1px solid #e5e5e5;
						border-top: 2px solid #1e94da;
						border-bottom: 1px solid #ffffff;
					}
				}
			}
			.content {
				position: absolute;
				top: 36px;
				height: 450px;
				width: 312px;
				border: 1px solid #e5e5e5;
				padding: 0 13px;
				box-sizing: border-box;
				overflow-y: scroll;
			}
			.long {
				top: 0;
				height: 484px;
			}
		}
		.transfer-operate {
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			width: 70px;
			.btn {
				display: block;
				width: 30px;
				height: 30px;
				margin-bottom: 20px;
				background: url(${img});
				cursor: pointer;
			}
			.all-right {
				background-position: -240px -365px;
				&:hover {
					background-position: -270px -365px;
				}
				&:active {
					background-position: -300px -365px;
				}
			}
			.right {
				background-position: 0px -395px;
				&:hover {
					background-position: -30px -395px;
				}
				&:active {
					background-position: -60px -395px;
				}
			}
			.left {
				background-position: -120px -395px;
				&:hover {
					background-position: -150px -395px;
				}
				&:active {
					background-position: -180px -395px;
				}
			}
			.all-left {
				margin-bottom: 0;
				background-position: -240px -395px;
				&:hover {
					background-position: -270px -395px;
				}
				&:active {
					background-position: -300px -395px;
				}
			}
		}
		.right-list {
			height: 484px;
			width: 312px;
			border: 1px solid #e5e5e5;
			.title {
				height: 32px;
				line-height: 32px;
				text-align: center;
				border-bottom: 1px solid #e5e5e5;
			}
		}
		.right-operate {
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			width: 50px;
			position: absolute;
			top: 0;
			bottom: 0;
			right: -15px;
			.btn {
				display: block;
				width: 30px;
				height: 30px;
				margin-bottom: 20px;
				background: url(${img});
				cursor: pointer;
			}
			.top {
				background-position: -120px -425px;
				&:hover {
					background-position: -150px -425px;
				}
				&:active {
					background-position: -180px -425px;
				}
			}
			.up {
				background-position: 0 -455px;
				&:hover {
					background-position: -30px -455px;
				}
				&:active {
					background-position: -60px -455px;
				}
			}
			.down {
				background-position: -120px -455px;
				&:hover {
					background-position: -150px -455px;
				}
				&:active {
					background-position: -180px -455px;
				}
			}
			.bottom {
				margin-bottom: 0;
				background-position: -240px -425px;
				&:hover {
					background-position: -270px -425px;
				}
				&:active {
					background-position: -300px -425px;
				}
			}
		}
	}
	.list-item {
		height: 38px;
		line-height: 38px;
		display: flex;
		align-items: center;
		cursor: pointer;
		user-select: none;
		&:hover {
			background: #2381b6;
			color: #fff;
		}
		.icon-wrap {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 30px;
			height: 100%;
			.icon {
				display: inline-block;
				width: 14px;
				height: 14px;
				background: url(${img});
				background-position: -2px -1671px;
			}
		}
		.name {
			margin-left: 10px;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
			flex: 1;
		}
		&.selected {
			background: #ffffff;
			color: #666;
			.icon {
				background-position: -326px -1671px;
			}
		}
		&.checked {
			background: #2381b6;
			color: #fff;
			.icon {
				background-position: -92px -1671px;
			}
			&.selected .icon {
				background-position: -344px -1671px;
			}
		}
	}
	.msg {
		color: #949799;
		margin-top: 10px;
	}
`
